package STX.test;

import STX.entity.Student;
import STX.entity.Teacher;
import STX.entity.Course;
import java.util.Arrays;
import java.util.List;

public class CourseSelection {
    public static void main(String[] args) {
        // 教师
        Teacher teacher1 = new Teacher(1, "张老师", "男", "JAVA应用开发技术");
        Teacher teacher2 = new Teacher(2, "晏老师", "女", "电路与模拟电子技术基础");
        Teacher teacher3 = new Teacher(3, "李老师", "男", "数据结构");

        // 课程
        Course course1 = new Course(1, "JAVA应用开发技术", "主2501", "10:00", teacher1);
        Course course2 = new Course(2, "电路与模拟电子技术开发", "教307", "8:00", teacher2);
        Course course3 = new Course(3, "数据结构", "教101", "13:30", teacher3);

        // 学生
        Student student1 = new Student(1, "姜承禄", "男", course1, null);
        Student student2 = new Student(2, "褚钰", "女", course2, null);
        Student student3 = new Student(3, "宋义进", "男", null, course3);

        List<Course> courses = Arrays.asList(course1, course2, course3);

        System.out.println("=== 教师信息 ===");
        teacher1.printInfo();
        teacher1.printStudents(courses);
        teacher2.printInfo();
        teacher2.printStudents(courses);
        teacher3.printInfo();
        teacher3.printStudents(courses);

        System.out.println("\n=== 学生信息 ===");
        student1.printInfo();
        student2.printInfo();
        student3.printInfo();
    }
}
